package OOday02;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/7 11:36
 */
public class Dog extends Animal implements Swim{
    String food;
    Dog(){

    }
    Dog(String name,int age,String color,String food){
        super(name,age,color);
        this.food=food;
    }
    void eat(){
        System.out.println(color+"的"+name+"正在吃"+food);
    }

    void lookhome(){
        System.out.println(color+"的"+name+"正在看家");
    }
    public void swim(){
        System.out.println(color+"的"+name+"正在游泳");
    }
}
